package com.thirteen.start.controller;

import com.thirteen.start.vo.UserVO;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@Controller
@RequestMapping("/test")
public class TestController {

    @RequestMapping("/page")
    public String page(HttpServletRequest request, HttpServletResponse response) {
        UserVO userVO = new UserVO();
        userVO.setName("阿萨德");
        request.setAttribute("user", userVO);
        return "test/test";
    }

}
